package engine.tip.tipItem
{
	import engine.data.ObjectData;
	import engine.tip.TipsMainLogic;
	
	import newx.com.config.StaticIni;

	/**
	 *对比装备专用 
	 * @author yanghr
	 * 
	 */	
	public class CompareEqItem extends EquipItem
	{
		public function CompareEqItem(dataObject:ObjectData=null, data:Object=null)
		{
			super(dataObject, data);
		}
		override public function getMainStr():String
		{
			compareString;
			normalPropertyCount=0;
			_disCount=currentDisCount
			var holeCan:String=canModify();
			var holeProperty:String=modifyPropertys()
			var fashionPro:String = fashionPropertys() ;
			var aCond:Boolean=(holeCan||holeProperty)
			var isDesc:Boolean =Boolean( desc());
			
			
			var proIs:Boolean;
			if(data["EquipType"] =="Fashion")
			{
				proIs =false ;
			}else
			{
				proIs = true ; 
			}
			
			
			var str:String = getName()+getChangeLine()
				//			+(getEqStrength())+""
				//			+getEqDamage()+""
				//			+getPhyDef()+""
				//			+(otherPropertys())+""
				+(proIs?normalPropertys():fashionPro)+""
				+(normalPropertyCount>1?getALine():getHeightLine())
				+(holeCan)+""
				+(holeProperty)+""
				+(aCond?getALine():"")
				+(getEqNeedProf())+""
				+(getEqNeedLevel())
				+getALine()
				//			+(getEqHardIness())+""
				+getEquipFightScore()+""
				+getPrice()+"\n"
			
			if(isDesc)
			{
				str += getALine()+desc()+getChangeLine();
			}
			
			if(getItemStopTime())
			{
				str +=getALine()+getItemStopTime();
			}

			return str;
		}
//		override public function getName():String
//		{
//			return super.getName()+compareString
//		}
		public function get compareString():String
		{
			var str:String	=	TipsMainLogic.instance.getColorHtml(StaticIni.getSwfLangStr("UIString_1000111"),"ffffff");
			_panel.compareText=str;
			return str
		}
		 public function getHeightLine():String
		{
			return getChangeLine()+_panel.addLinePic(200,2,-3) +getChangeLine() 
		}
	}
}